//
//  NormalShopCollectionViewCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/7/26.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "NormalShopCollectionViewCell.h"
#import <UIImageView+WebCache.h>

@interface NormalShopCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *thumbnailImageView;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLab;
@property (weak, nonatomic) IBOutlet UILabel *priceLab;

@end
@implementation NormalShopCollectionViewCell

- (void)setModel:(NormalShopGoodsModel *)model
{
    _model = model;
    [self.thumbnailImageView sd_setImageWithURL:[NSURL URLWithString:model.thumbnailUrl] placeholderImage:GetImage(@"default_goods_image")];
    self.goodsNameLab.text = model.name;
    self.priceLab.text = [NSString stringWithFormat:@"¥%.2f",model.price];
}

@end
